import axios from "axios";
export default {
  namespaced: true,
  state: {
    options: [],
  },
  getters: {

  },
  mutations: {

    getCategory: function (state, payload) {

      state.options = payload;

    },
  },
  actions: {
    getCategoryAsync: function (context) {
      axios.get("/category").then(res => {
        context.commit('getCategory', res.data);
      });
    },
  }
}